Skip to content

refactor(tck): clone account balance maps - #1825

Open
colinaumaty wants to merge 1 commit into
hiero-ledger:mainfrom
colinaumaty:feature_colinaumaty
Open

refactor(tck): clone account balance maps#1825
colinaumaty wants to merge 1 commit into
hiero-ledger:mainfrom
colinaumaty:feature_colinaumaty

Conversation

@colinaumaty

Copy link
Copy Markdown

Description:

There is a new function added in the go1.21 standard library, which can make the code more concise and easy to read.

Use maps.Clone for defensive account-balance copies in the TCK methods.

The returned values are unchanged and the copy intent is explicit.

Related issue(s):

Fixes #

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@colinaumaty
colinaumaty requested review from a team as code owners September 1, 2026 15:51
@lfdt-bot

lfdt-bot commented Sep 1, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Signed-off-by: colinaumaty <colinaumaty@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants